/*
 *  Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Apache License, Version 2.0 which is available at
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Contributors:
 *       Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
 *
 */

package org.eclipse.edc.validator.spi;

/**
 * Permits to validate an object
 *
 * @param <T> the object type.
 */
public interface Validator<T> {

    /**
     * Validates the input object.
     *
     * @param input the object to be validated.
     * @return success if input is valid, failure otherwise.
     */
    ValidationResult validate(T input);
}
